package prototype.demo.bean;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

public class Bean2 implements Cloneable, Serializable {

    private Long id;
    private String realName;
    private String nickName;
    private Integer sex;
    private String password;
    private String email;
    private String phone;
    private List<Long> children;
    private List<Long> parents;
    private BigDecimal credit;
    private BigDecimal totalCredit;

    public void setId(Long id) {
        this.id = id;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public void setChildren(List<Long> children) {
        this.children = children;
    }

    public void setParents(List<Long> parents) {
        this.parents = parents;
    }

    public void setCredit(BigDecimal credit) {
        this.credit = credit;
    }

    public void setTotalCredit(BigDecimal totalCredit) {
        this.totalCredit = totalCredit;
    }

    public Bean2(Long id, String realName, String nickName, Integer sex, String password, String email, String phone, List<Long> children, List<Long> parents, BigDecimal credit, BigDecimal totalCredit) {
        this.id = id;
        this.realName = realName;
        this.nickName = nickName;
        this.sex = sex;
        this.password = password;
        this.email = email;
        this.phone = phone;
        this.children = children;
        this.parents = parents;
        this.credit = credit;
        this.totalCredit = totalCredit;
    }

    @Override
    public String toString() {
        return "Bean2{" +
                "id=" + id +
                ", realName='" + realName + '\'' +
                ", nickName='" + nickName + '\'' +
                ", sex=" + sex +
                ", password='" + password + '\'' +
                ", email='" + email + '\'' +
                ", phone='" + phone + '\'' +
                ", children=" + children +
                ", parents=" + parents +
                ", credit=" + credit +
                ", totalCredit=" + totalCredit +
                '}';
    }

    @Override
    public Object clone() throws CloneNotSupportedException {
       return super.clone();

    }
}
